package Model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;




public class NhaSanXuat implements Serializable{
	private String tennhasanxuat;
	private Integer idnhasanxuat;
	private Set<SanPham> sanphams = new HashSet<SanPham>();
	
	
	public String getTennhasanxuat() {
		return tennhasanxuat;
	}
	public void setTennhasanxuat(String tennhasanxuat) {
		this.tennhasanxuat = tennhasanxuat;
	}
	public Integer getIdnhasanxuat() {
		return idnhasanxuat;
	}
	public void setIdnhasanxuat(Integer idnhasanxuat) {
		this.idnhasanxuat = idnhasanxuat;
	}
	public Set<SanPham> getSanphams() {
		return sanphams;
	}
	public void setSanphams(Set<SanPham> sanphams) {
		this.sanphams = sanphams;
	}
	@Override
	public boolean equals(Object arg0) {
		NhaSanXuat that = (NhaSanXuat) arg0;
		return that.tennhasanxuat.equalsIgnoreCase(this.tennhasanxuat);
	}
}
